package com.wingsboat.graphvis.domain;

import com.wingsboat.common.core.annotation.Excel;
import com.wingsboat.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 节点连接对象 gv_node_link
 * 
 * @author wangzhong
 * @date 2024-04-20
 */
public class GvNodeLink extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 连接id */
    private Long linkId;

    /** 源头 */
    @Excel(name = "源头")
    private Long source;

    /** 目标 */
    @Excel(name = "目标")
    private Long target;

    /** 连接名称 */
    @Excel(name = "连接名称")
    private String label;

    public void setLinkId(Long linkId) 
    {
        this.linkId = linkId;
    }

    public Long getLinkId() 
    {
        return linkId;
    }
    public void setSource(Long source) 
    {
        this.source = source;
    }

    public Long getSource() 
    {
        return source;
    }
    public void setTarget(Long traget)
    {
        this.target = traget;
    }

    public Long getTarget()
    {
        return target;
    }
    public void setLabel(String label) 
    {
        this.label = label;
    }

    public String getLabel() 
    {
        return label;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("linkId", getLinkId())
            .append("source", getSource())
            .append("traget", getTarget())
            .append("label", getLabel())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
